package com.zhang.modules.mianShi.entity.cmd.appSytem;

import com.zhang.common.jpa.entity.AddCmd;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * A DTO for the {@link com.zhang.modules.mianShi.entity.AppSystem} entity
 */
@Data
public class SystemAddCmd implements Serializable , AddCmd {

    @Size(max = 255)
    @NotBlank(message = "系统编码不能为空")
    @ApiModelProperty("系统编码")
    private  String systemCode;

    @Size(max = 255)
    @NotBlank(message = "系统编码不能为空")
    @ApiModelProperty("系统名称")
    private  String systemName;

    @Size(max = 255)
    @NotBlank(message = "系统编码不能为空")
    @ApiModelProperty("系统kss码")
    private  String systemKss;

    @NotNull(message = "是否默认不能为空")
    @ApiModelProperty("是否默认")
    private  Boolean isDefault;

    @Size(max = 255)
    @NotBlank(message = "主系统code不能为空")
    @ApiModelProperty("主系统code")
    private  String masterCode;

    @Size(max = 255)
    @NotBlank(message = "区域id不能为空")
    @ApiModelProperty("区域id")
    private  String regionId;
}